package com.lzu.lesson07_factory_pizza;

public abstract class PizzaStore {

    abstract Pizza createPizza(String type);


    public Pizza orderPizza(String type) {
        Pizza pizza = null;
        pizza = createPizza(type);

        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

        return pizza;
    }
}
